package com.jeesite.modules.ic.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 运营商Entity
 * @author 李寒冰
 * @version 2024-07-15
 */
@Table(name="ic_channel", alias="a", label="运营商信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="name", attrName="name", label="供应商名称", queryType=QueryType.LIKE),
		@Column(name="beizhu", attrName="beizhu", label="备注"),
	}, orderBy="a.id DESC"
)
public class IcChannel extends DataEntity<IcChannel> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 供应商名称
	private String beizhu;		// 备注

	@Override
	public void preInsert() {
		super.preInsert();
		setId(null);
	}

	public IcChannel() {
		this(null);
	}
	
	public IcChannel(String id){
		super(id);
	}

	@Size(min=0, max=255, message="供应商名称长度不能超过 255 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Size(min=0, max=255, message="备注长度不能超过 255 个字符")
	public String getBeizhu() {
		return beizhu;
	}

	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	
}